package com.platform.service.impl;

import com.platform.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.LabelDao;
import com.platform.entity.LabelEntity;

/**
 * 标签Service实现类
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-06-02 23:43:24
 */
@Service("labelService")
public class LabelServiceImpl implements LabelService {
    @Autowired
    private LabelDao apiLabelDao;

    @Override
    public LabelEntity queryObject(Long id) {
        return apiLabelDao.queryObject(id);
    }

    @Override
    public List<LabelEntity> queryList(Map<String, Object> map) {
        return apiLabelDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return apiLabelDao.queryTotal(map);
    }

    @Override
    public int save(LabelEntity apiLabel) {
        return apiLabelDao.save(apiLabel);
    }

    @Override
    public int update(LabelEntity apiLabel) {
        return apiLabelDao.update(apiLabel);
    }

    @Override
    public int delete(Long id) {
        return apiLabelDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[]ids) {
        return apiLabelDao.deleteBatch(ids);
    }
}
